home *** CD-ROM | disk | FTP | other *** search
- on(keyPress "<Up>"){
- if(0 < manbnumber)
- {
- manb.gotoandplay("down");
- sound.gotoandplay("up");
- bscore = scoreb;
- tjs = 10;
- while(tjs >= 0)
- {
- if(b[manbx][tjs] != 0)
- {
- ttb = tjs + 1;
- atb = tjs + 1;
- break;
- }
- tjs--;
- }
- if(b[manbx][0] == 0)
- {
- ttb = 0;
- atb = 0;
- }
- i = 0;
- while(i < manbnumber)
- {
- if(manbcolor == 1)
- {
- duplicateMovieClip("reds","gb" add (ttb * 8 + manbx),16384 + chengb);
- setProperty("gb" add (ttb * 8 + manbx), _X, manbx * 35 + 362);
- setProperty("gb" add (ttb * 8 + manbx), _Y, ttb * 35 + 55);
- b[manbx][ttb] = 1;
- }
- else if(manbcolor == 2)
- {
- duplicateMovieClip("blues","gb" add (ttb * 8 + manbx),16384 + chengb);
- setProperty("gb" add (ttb * 8 + manbx), _X, manbx * 35 + 362);
- setProperty("gb" add (ttb * 8 + manbx), _Y, ttb * 35 + 55);
- b[manbx][ttb] = 2;
- }
- else if(manbcolor == 3)
- {
- duplicateMovieClip("greens","gb" add (ttb * 8 + manbx),16384 + chengb);
- setProperty("gb" add (ttb * 8 + manbx), _X, manbx * 35 + 362);
- setProperty("gb" add (ttb * 8 + manbx), _Y, ttb * 35 + 55);
- b[manbx][ttb] = 3;
- }
- else if(manbcolor == 4)
- {
- duplicateMovieClip("yellows","gb" add (ttb * 8 + manbx),16384 + chengb);
- setProperty("gb" add (ttb * 8 + manbx), _X, manbx * 35 + 362);
- setProperty("gb" add (ttb * 8 + manbx), _Y, ttb * 35 + 55);
- b[manbx][ttb] = 4;
- }
- ttb += 1;
- chengb += 1;
- if(ttb >= 10)
- {
- break;
- }
- i++;
- }
- bloon2 = manbnumber == 1 && b[manbx][ttb - 2] == manbcolor && b[manbx][ttb - 3] == manbcolor;
- if(manbnumber >= 3 || manbnumber == 2 && b[manbx][ttb - 3] == manbcolor || bloon2)
- {
- iib = 1;
- while(iib < 10)
- {
- if(b[manbx][ttb - iib] != manbcolor)
- {
- break;
- }
- this["gb" add ((ttb - iib) * 8 + manbx)].gotoAndPlay("over");
- scoreb += 10;
- b[manbx][ttb - iib] = 0;
- che = 1;
- while(8 >= che)
- {
- if(b[manbx - che][ttb - iib] != manbcolor)
- {
- break;
- }
- this["gb" add ((ttb - iib) * 8 + manbx - che)].gotoAndPlay("over");
- scoreb += 10;
- b[manbx - che][ttb - iib] = 0;
- si = 1;
- while(11 >= si && b[manbx - che][ttb - iib + si] != 0)
- {
- this["gb" add ((ttb - iib + si) * 8 + manbx - che)].gotoAndPlay("down");
- b[manbx - che][ttb - iib + si] = 0;
- si++;
- }
- che++;
- }
- che = 1;
- while(8 >= che)
- {
- if(b[manbx + che][ttb - iib] != manbcolor)
- {
- break;
- }
- this["gb" add ((ttb - iib) * 8 + manbx + che)].gotoAndPlay("over");
- scoreb += 10;
- b[manbx + che][ttb - iib] = 0;
- si = 1;
- while(11 >= si && b[manbx + che][ttb - iib + si] != 0)
- {
- this["gb" add ((ttb - iib + si) * 8 + manbx + che)].gotoAndPlay("down");
- b[manbx + che][ttb - iib + si] = 0;
- si++;
- }
- che++;
- }
- iib++;
- }
- }
- bscore = scoreb - bscore;
- if(160 * xb < scoreb && scoreb < xb * 160 + 160 && x[xb] != 1)
- {
- sss();
- char2.gotoandplay("ded");
- x[xb] = 1;
- xb += 1;
- }
- else if(bscore >= 60)
- {
- sss();
- char2.gotoandplay("happy");
- p2k.gotoandplay(2);
- char1.gotoandplay("cry");
- }
- manbnumber = 0;
- manbcolor = 0;
- }
- }
-